define cassandra::dbnode(
	$classname = $title,
	$newdc = 0 
) {    

	if $newdc == 1{
		$new_dc = 1
	}

	case $classname {
	  'sen2': {include sen2}
	  'sen' : {include sen}
	  'proto': {include proto}
	  default: {fail("unrecognized class ${classname}")}
	}

	$pussandra_opt='--config=~/puppet.conf --tags=update'

	file{'/root/puppet.conf':
	  owner => root,
	  ensure => present,
	  tag => 'update',
	  source => 'puppet:///modules/cassandra/puppet.conf';

	  '/root/certname' :
	  owner => root,
	  ensure => present,
	  replace => false,
	  content => 'input_the_certname --noop';
	}

	cron {pussandra:
	  command => "/usr/bin/puppet agent ${pussandra_opt} --certname=`cat ~/certname`",
	  user => root,
	  minute => [0,15,30,45],
	  tag => 'update',
	}	


}
